<?php

    if($using_dollar_currency > 0){
        $crc_text = "$ ";
    } else {
        $crc_text = "Rp. ";
    }

?>

<table border="0">
    <tr>
        <td width="15%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="30%">&nbsp;</td>
        <td width="8%">&nbsp;</td>
        <td width="15%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="30%">&nbsp;</td>
    </tr>
    <tr>
        <td colspan="7" align="center">SURAT PENUNJUKAN</td>
    </tr>
    <tr>
        <td colspan="7" align="center">&nbsp;<br/>&nbsp;</td>
    </tr>
    <tr>
        <td>To</td>
        <td>:</td>
        <td><span><?php echo $nama_supplier;?></span></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>Date</td>
        <td>:</td>
        <td><span><?php echo $tanggal_po;?></span></td>
    </tr>
    <tr>
        <td>Detail Address</td>
        <td>:</td>
        <td><span><?php echo $alamat_detail_supplier;?></span></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>RF No.</td>
        <td>:</td>
        <td><span><?php echo $rf_number;?></span></td> 
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td><span><?php echo $alamat_komplit;?></span></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>QF ASP NO</td>
        <td>:</td>
        <td><span><?php echo $nomor_po;?></span></td>
    </tr>
    <tr>
        <td>Phone</td>
        <td>:</td>
        <td><span><?php 
            $ktk_kmplt = explode("/", $kontak_komplit);
            $ktk_kmplt[1] .= " (Fax)";
            $ktk_kmplt[2] .= " (Mail)";
            echo implode("<br/>", $ktk_kmplt);        
        ?></span></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>Vessel</td>
        <td>:</td>
        <td><span><?php echo $nama_vessel;?></span></td>
    </tr>
    <tr>
        <td>Attendance</td>
        <td>:</td>
        <td><span><?php echo $attendance;?></span></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>Port</td>
        <td>:</td>
        <td><span><?php echo $nama_port;?></span></td>
    </tr>
    <tr>
        &nbsp;&nbsp;&nbsp;
    </tr>
    <tr>
        <td>Subject</td>
        <td>:</td>
        <td><span><?php echo $subject;?></span></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>Urgensi</td>
        <td>:</td>
        <td><span><?php echo $urgensi;?></span></td>
    </tr>

    <tr>
        <td colspan="7">
            <p align="justify"><?php echo "Yth. Bpk/Ibu $attendance, <br> <br>
Berdasarkan dari penawaran bapak/ibu yang telah kami terima dan informasi bahwa kapal kami
yang saat ini berada di $port, maka dengan ini kami menunjuk ".strtoupper($nama_supplier).
", sebagai agen kapal untuk tersebut di bawah ini : <br>"
;
                ?>
            </p>
        </td>
    </tr>
    <?php
    echo "
        <tr><td>Nama Kapal </td><td></td><td>: ".$nama_vessel."</td></tr>".
        "<tr><td>Bendera </td><td></td><td>: ".$bendera_vessel."</td></tr>".
        "<tr><td>GT </td><td></td><td>: ".$gt_vessel."</td></tr>
    ";
    ?>
    <tr>
        <td colspan="7"></td>
    </tr>
    <tr>
        <td colspan="7">Untuk PIC Perusahaan kami antara lain : </td>
    </tr>
    <tr>
        <td colspan="7"><?=$pic_perusahaan?></td>
    </tr>
    <tr>
        <td colspan="7"></td>
    </tr>
    <tr>
        <td colspan="7">Atas perhatian dan kerjasamanya kami ucapkan terimakasih</td>
    </tr>
    <tr>
        <td colspan="7"></td>
    </tr>
    <tr>
        <td colspan="7"></td>
    </tr>
    <tr>
        <td colspan="3" align="center">Quote By</td>
        <td>&nbsp;</td>
        <td colspan="3" align="center">Approved By</td>
    </tr> 
    <tr> 
        <td colspan="7" align="center">&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;</td>
    </tr>
    <tr> 
        <td colspan="3" align="center">(<?php echo $quote_by?>)</td>
        <td>&nbsp;</td>
        <td colspan="3" align="center">(<?php echo $approved_by?>)</td>
    </tr>
</table>